package com.dba.example.gwt.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class HomePlace extends Place {

	private String token;

	public HomePlace(String token) {
		this.token = token;
	}

	public String getToken() {
		return token;
	}

	@Prefix("home")
	public static class Tokenizer implements PlaceTokenizer<HomePlace> {
		public String getToken(HomePlace place) {
			return "";
		}

		public HomePlace getPlace(String token) {
			return new HomePlace(token);
		}
	}

	@Override
	public String toString() {
		return "home:";
	}

}
